/*  1:   */ package org.jetbrains.jps.model.module.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsElementChildRole;
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
import org.jetbrains.jps.model.library.JpsLibrary;
import org.jetbrains.jps.model.library.JpsLibraryReference;
import org.jetbrains.jps.model.module.JpsLibraryDependency;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class JpsLibraryDependencyImpl
/* 12:   */   extends JpsDependencyElementBase<JpsLibraryDependencyImpl>
/* 13:   */   implements JpsLibraryDependency
/* 14:   */ {
/* 15:30 */   public static final JpsElementChildRole<JpsLibraryReference> LIBRARY_REFERENCE_CHILD_ROLE = JpsElementChildRoleBase.create("library reference");
/* 16:   */   
/* 17:   */   public JpsLibraryDependencyImpl(JpsLibraryReference paramJpsLibraryReference)
/* 18:   */   {
/* 19:34 */     this.myContainer.setChild(LIBRARY_REFERENCE_CHILD_ROLE, paramJpsLibraryReference);
/* 20:   */   }
/* 21:   */   
/* 22:   */   public JpsLibraryDependencyImpl(JpsLibraryDependencyImpl paramJpsLibraryDependencyImpl)
/* 23:   */   {
/* 24:38 */     super(paramJpsLibraryDependencyImpl);
/* 25:   */   }
/* 26:   */   
/* 27:   */   @NotNull
/* 28:   */   public JpsLibraryReference getLibraryReference()
/* 29:   */   {
/* 30:44 */     JpsLibraryReference tmp13_10 = ((JpsLibraryReference)this.myContainer.getChild(LIBRARY_REFERENCE_CHILD_ROLE));
/* 31:44 */     if (tmp13_10 == null) {
/* 32:44 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/module/impl/JpsLibraryDependencyImpl", "getLibraryReference" }));
/* 33:   */     }
/* 34:44 */     return tmp13_10;
/* 35:   */   }
/* 36:   */   
/* 37:   */   public JpsLibrary getLibrary()
/* 38:   */   {
/* 39:49 */     return (JpsLibrary)getLibraryReference().resolve();
/* 40:   */   }
/* 41:   */   
/* 42:   */   @NotNull
/* 43:   */   public JpsLibraryDependencyImpl createCopy()
/* 44:   */   {
/* 45:55 */     void tmp8_5 = new JpsLibraryDependencyImpl(this);
/* 46:55 */     if (tmp8_5 == null) {
/* 47:55 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/module/impl/JpsLibraryDependencyImpl", "createCopy" }));
/* 48:   */     }
/* 49:55 */     return tmp8_5;
/* 50:   */   }
/* 51:   */   
/* 52:   */   public String toString()
/* 53:   */   {
/* 54:60 */     return "lib dep [" + getLibraryReference() + "]";
/* 55:   */   }
/* 56:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.module.impl.JpsLibraryDependencyImpl

 * JD-Core Version:    0.7.0.1

 */